import api from "../utils/request";
const baseUrl = "/api/api/es";
export function getInfoByLevel(name, level) {
    return api.get(`${baseUrl}/getInfoByLevel`, {
        params: {
            name: name,
            level: level
        },
    })
}

export function getInfoByCode(code, level, from, size) {
    return api.get(`${baseUrl}/getInfoByCode`, {
        params: {
            code: code,
            level: level,
            from: from,
            size: size
        },
    })
}

export function getInfoByName(code, name, from, size) {
    return api.get(`${baseUrl}/getInfoByName`, {
        params: {
            code: code,
            name: name,
            from: from,
            size: size
        },
    })
}